<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta name="description" content=""/>
    <meta name="author" content="" />
    <title>汽车购票系统——下单页面</title>

    <link th:href="@{/css/order_place.css}" rel="stylesheet">
    <link th:href="@{/css/reset.css}" rel="stylesheet">
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
</head>
<body style="background: #F0F8FF">
<!-- -----头 部----- -->
<header>
    <div class="contain">
        <div class="headlt">
            <a th:href="@{/customer/index}"><img th:src="@{/image/logo.png}"></a>
        </div>
        <div class="headrg">
            <ul>
                <li><a  th:text="${customer.nick_name}">昵称</a>
                    <ul>
                        <li><a th:href="@{/customer/query(id=${customer.id})}">我的信息</a></li>
                        <li><a th:href="@{/order/index(id=${customer.id})}">我的订单</a></li>
                    </ul>
                </li>
                <li><a th:href="@{/publiz/index}">注销</a></li>
            </ul>
        </div>
    </div>
</header>
<div class="contain_place">
    <h1>车票信息</h1>
    <form class="query_place" th:action="@{/ticket/place}" method="post">
        <p>车票编号：<span th:text="${tickets.id}">1001</span></p>

        <p>线路：
            <span th:text="${tickets.starting_station}">广州</span>&nbsp;——&nbsp;
            <span th:text="${tickets.destination}">深圳</span></p>

        <p>出发城市：<span th:text="${tickets.starting_station}">广州</span>站&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            到达城市：<span th:text="${tickets.destination}">深圳</span></p>

        <p>出发日期：<span th:text="${tickets.departure_time}">2018-12-12 12:00</span></p>

        <p>车牌：<span th:text="${tickets.pleat_number}">粤A 88888</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            座位：<sqan th:text="${tickets.seating -1}">10</sqan></p>

        <p>售票点：<span th:text="${tickets.starting_station}">广州</span>站&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            价格：￥<span th:text="${tickets.ticket_price}">80</span></p>

        <!--隐藏域，传递数据-->
        <input type="hidden" name="id" th:value="${tickets.id}"></input>

        <input type="hidden" name="starting_station" th:value="${tickets.starting_station}"></input>
        <input type="hidden" name="destination" th:value="${tickets.destination}"></input>

        <input type="hidden" name="departure_time" th:value="${tickets.departure_time}"></input>
        <input type="hidden" name="pleat_number" th:value="${tickets.pleat_number}"></input>
        <input type="hidden" name="seat_number" th:value="${tickets.seating -1}"></input>

        <input type="hidden" name="ticket_price" th:value="${tickets.ticket_price}"></input>

        <input type="hidden" name="customer_id" th:value="${customer.id}"></input>


        <button  type="submit" class="btn btn-primary btn-block">下 单</button>
        <a th:href="@{/customer/index}" class="btn btn-primary btn-block" style="float: right;">取 消</a>

    </form>
</div>

<!--服务-->
<div class="service">
    <div class="service_con">
        <div class="service01">
            <img th:src="@{/image/fuwu.png}">
            <p>7X24小时服务</p>
        </div>
        <div class="service02">
            <img th:src="@{/image/chupiao.png}">
            <p>第一时间出票</p>
        </div>
        <div class="service03">
            <img th:src="@{/image/zhifu.png}">
            <p>安全支付</p>
        </div>
        <div class="service04">
            <img th:src="@{/image/shouhou.png}">
            <p>无忧售后保障</p>
        </div>
    </div>
</div>
<footer>
    <div class="foot">
        <ul>
            <li><a href="">网站地图</a></li>
            <li><a href="">关于我们</a></li>
            <li><a href="">联系我们</a></li>
        </ul>
        <ul>
            <li><a href="">合作企业</a></li>
            <li><a href="">法律声明</a></li>
            <li><a href="">隐私政策</a></li>
        </ul>
        <ul>
            <li><a href="">帮助中心</a></li>
            <li><a href="">在线提问</a></li>
            <li><a href="">问题反馈</a></li>
        </ul>
        <div class="foot_right">
            <p class="tel">400-488-6666</p>
            <p class="online">在线客服</p>
        </div>
    </div>
    <div class="copyright">&copy;2018-11  CYL版权所有</div>
</footer>

</body>
</html>